//
//  HBCategoryCell.m
//  HeartBeat
//
//  Created by karong on 2023/8/29.
//

#import "HBCategoryCell.h"
#import "HBCategoryModel.h"
@interface HBCategoryCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@end
@implementation HBCategoryCell
- (void)setDataWithObject:(HBCategoryItemModel *)object {
    self.titleLabel.text = object.title;
    self.titleLabel.textColor = UIColor.font_black_1A1A1A;
}

- (void)setPay_typeDataWithObject:(HBCategoryItemModel *)object select:(BOOL)select {
    [self setDataWithObject:object];
    self.titleLabel.textColor = (object.id==3&&!select)?UIColor.font_yellow_FFCC00:UIColor.font_black_1A1A1A;
    self.layer.borderColor = select?UIColor.font_black_1A1A1A.CGColor:UIColor.clearColor.CGColor;
    self.backgroundColor = select?UIColor.font_yellow_FFCC00:UIColor.clearColor;
}

- (void)setOtherDataWithObject:(HBCategoryItemModel *)object select:(BOOL)select {
    [self setDataWithObject:object];
    self.layer.borderColor = select?UIColor.font_black_1A1A1A.CGColor:UIColor.clearColor.CGColor;
    self.backgroundColor = select?UIColor.font_yellow_FFCC00:UIColor.clearColor;
}
@end
